package com.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import com.pojo.User;

@Mapper
@Repository
public interface UserDao {

	public User getOne(User user);

	public User selectByAccount(String account);

	public List<User> getUserList();

	public List<User> getUserAll();

	public User userUpdateOne(int id);

	public int update(User user);

	public User getOneById(int id);

	User getOneUser(int id);

	List<User> getAll();

	boolean delOne(int id);

	boolean updateOne(User user);

	boolean addOne(User user);

	User getName(int id);

	public User getByNickname(String u_nickname);

	public List<User> selectAllByNickname(String nickname);
}
